package com.atguigu.srb.core.service;

import com.atguigu.srb.core.pojo.entity.Borrower;
import com.atguigu.srb.core.pojo.vo.BorrowerAuditVO;
import com.atguigu.srb.core.pojo.vo.BorrowerDetailVO;
import com.atguigu.srb.core.pojo.vo.BorrowerVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 借款人 服务类
 * </p>
 *
 * @author lsyandwh
 * @since 2022-12-02
 */
public interface BorrowerService extends IService<Borrower> {

    Integer getBorrowerStatus(String userId);

    void saveBorrower(BorrowerVO borrowerVO,String userId);

    IPage<Borrower> pageList(Integer size, Integer limit, String keyword);

    BorrowerDetailVO getBorrowerById(Long id);

    void borrowerAudit(BorrowerAuditVO borrowerAuditVO);
}
